package com.xy.singleton;

/**
 * @author 谢阳
 * @version 1.8.0_131
 * @date 2022/6/9 19:54
 * @description 查看jdk源码
 */
public class RuntimeTest {
    public static void main(String[] args) {
        Runtime runtime = Runtime.getRuntime();
        System.out.println(runtime.maxMemory());
        System.out.println(runtime.freeMemory());

    }
}
